LoginScene = {}
LoginSceneFunc = {}
setmetatable(LoginScene, LoginSceneFunc)

LoginSceneFunc.getNode = function()
  local l = {}
  setmetatable(l, LoginSceneFunc)
  l.node = CCBReader:load("LoginScene.ccbi")
  LoginScene.instance = l
  l:init()
  return l
end

LoginSceneFunc.getScene = function()
  local sc = CCScene:create()
  sc:addChild(LoginScene.getNode().node)
  return sc
end

LoginSceneFunc.init = function(self)
  local nameEditBox = CCEditBox:create(CCSizeMake(286, 73), "dailyquest_bk4.png", "用户名")
  nameEditBox:setPosition(ccp(480, 400))
  self.node:addChild(nameEditBox)
  
  local passwdEditBox = CCEditBox:create(CCSizeMake(286, 73), "dailyquest_bk4.png", "密码")
  passwdEditBox:setPosition(ccp(480, 300))
  passwdEditBox:setInputFlag(0)
  self.node:addChild(passwdEditBox)
end
